package face.pay.cpn.activity.api;


import face.pay.cpn.activity.service.ICpnCardInfoService;
import face.pay.cpn.utils.response.ResponseMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@RequestMapping("cpnCard")
@Controller
public class ApiCpnCardInfo {


    @Autowired
    private ICpnCardInfoService iCpnCardInfoService;

    @ResponseBody
    @PostMapping("queryCardInfo")
    public ResponseMessage queryCardInfo(@RequestBody String jsonData) {
        return this.iCpnCardInfoService.queryCardInfo(jsonData);
    }
}
